import { Routes } from '@angular/router';
import { List1Component } from './pages/list1/list1.component';
import { List2Component } from './pages/list2/list2.component';
import { List3Component } from './pages/list3/list3.component'; 
import { NotfoundComponent } from './pages/notfound/notfound.component';
import { Other2Component } from './pages/other2/other2.component'; 
import { Other1Component } from './pages/other1/other1.component';
import { TypographyComponent } from './pages/typography/typography.component';
import { List4Component } from './pages/list4/list4.component'; 
import { WelcomeComponent } from './pages/welcome/welcome.component';

export const routes: Routes = [
{path: 'list1', data: {name: '列表1',parentPath: '/User', parentName: '用户管理'},component: List1Component},
{path: 'list2', data: {name: '列表2',parentPath: '/User', parentName: '用户管理'},component: List2Component},
{path: 'list3', data: {name: '列表3',parentPath: '/User', parentName: '用户管理'},component: List3Component},
{path: 'list4', data: {name: '列表4',parentPath: '/User', parentName: '用户管理'},component: List4Component},
{path: 'other1', data: {name: '其他1',parentPath: '/other', parentName: '其他'},component: Other1Component},
{path: 'other2', data: {name: '其他2',parentPath: '/other', parentName: '其他'},component: Other2Component},
{path: 'text', data: {name: '文本'}, component: TypographyComponent},
{path: '', redirectTo: '/welcome', pathMatch: 'full'},
{path: 'welcome',component:WelcomeComponent},
{path: '**', component: NotfoundComponent},

];
